package xcc.design.demo.builder;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description： TODO
 * Date： 2020/6/8 17:54
 *
 * @author changchun.xue
 */
@RestController
@RequestMapping("/swim")
public class SwimController {

    @Qualifier("waYong")
    @Autowired
    private SwimBuilder swimBuilder;

    @GetMapping("/begin")
    public void begin() {
        swimBuilder.beginSwim();
    }
}
